//
//  SRLoginUser.h
//  EnglishTalk
//
//  Created by CyonLeuPro on 15/6/9.
//  Copyright (c) 2015年 Feizhu Tech. All rights reserved.
//

#import <Foundation/Foundation.h>
/**
 *  用户身份类型
 */
typedef NS_ENUM(NSInteger, SRLoginUserType){
    /**
     *  none
     */
    SRLoginUserTypeNone = -1,
    /**
     *  游客
     */
    SRLoginUserTypeGuest = 0,
    /**
     *  手机
     */
    SRLoginUserTypeMobile,
    /**
     *  QQ
     */
    SRLoginUserTypeQQ,
    /**
     *  微博
     */
    SRLoginUserTypeWeibo,
    /**
     *  微信
     */
    SRLoginUserTypeWeixin,
    /**
     *  iShow学员
     */
    SRLoginUserTypeiShowMember
};

/**
 *  用户身份 ：学生、家长、老师、上班族
 */
typedef NS_ENUM (NSInteger,FZUserIdentifier){
    FZUserIdentifierNone =0, //无
    FZUserIdentifierStudent,//学生
    FZUserIdentifierParent,//家长
    FZUserIdentifierTeacher,//老师
    FZUserIdentifierWoker,//上班族
};

/**
 *  学生身份 ：小学，中学，大学
 */
typedef NS_ENUM(NSInteger,FZStudentType) {
    FZStudentTypeNone =0,       //无
    FZStudentTypePrimarySchool,//小学
    FZStudentTypeMiddleSchool,//中学
    FZStudentTypeUniversity,//大学
};

/**
 *  用户学校身份类型
 */
typedef NS_ENUM(NSInteger, SRSchoolClassUserType){
    /**
     *  还未选择
     */
    SRSchoolClassUserTypeNone = 0,
    /**
     *  学生
     */
    SRSchoolClassUserTypeStudent,
    /**
     *  老师
     */
    SRSchoolClassUserTypeTeacher
    
};


@interface SRLoginUser : NSObject

//@property (strong, nonatomic) NSString *uid;
//@property (strong, nonatomic) NSString *nickname;
//@property (strong, nonatomic) NSString *avatar;
//@property (strong, nonatomic) NSString *email;
#pragma logincount--password
/**
 *   登陆账号
 *
 *  @return
 */
+ (NSString *)userLoginAcount ;
+ (void)setuserLoginAcount:(NSString *)userAccount ;
/**
 *   登陆密码
 *
 *  @return
 */
+ (NSString *)userLoginPassword ;
+ (void)setuserLoginPassword:(NSString *)password;

#pragma mark - User Base info
/**
 *   uid
 *
 *  @return uid
 */
+ (NSString *)userID;
+ (void)setUserID:(NSString *)userID;

+ (NSString *)commonUId;
+ (void)setCommonUId:(NSString *)commonUID;

/**
 *  user nickname
 *
 *  @return nickname
 */
+ (NSString *)nickname;
+ (void)setNickname:(NSString *)nickname;

+ (NSString *)avatar;
+ (void)setAvatar:(NSString *)avatar;

+ (NSString *)email;
+ (void)setEmail:(NSString *)email;


+ (NSString *)chatPeerNickname;
+ (void)setChatPeerNickname:(NSString *)nickname;
+ (NSString *)chatPeerAvatar;
+ (void)setChatPeerAvatar:(NSString *)avatar;
/**
 *  上次登录用户名
 *
 *  @return 用户名：昵称或手机号
 */
+ (NSString *)lastUserName;
+ (void)setLastUserName:(NSString *)lastUserName;

/**
 *  用户身份信息:
 0 游客
 1 手机
 2 qq
 3 微博
 4 微信
 5  ishow学员
 自由组合判断
 *
 *  @return string
 */
+ (NSString *)type;
+ (void)setType:(NSString *)type;

/**
 会员状态
 
 @return 会员状态
 */
+ (NSString *)VIPStatus;
+ (void)setVIPStatus:(NSString *)vip;

/**
 会员到期时间

 @return 到期时间
 */
+ (NSString *)VIPEndTime;
+ (void)setVIPEndTime:(NSString *)vipEndTime;

/**
 会员权利

 @return 权利
 */
+ (NSString *)VIPRights;
+ (void)setVIPRights:(NSString *)vipRights;

+ (BOOL)isUserType:(SRLoginUserType)userType;

#pragma mark -  token info

/**
 *  用户登录后授权令牌
 *
 *  @return token
 */
+ (NSString *)authToken;
+ (void)setAuthToken:(NSString *)authToken;

+ (NSString *)refreshToken;
+ (void)setRefreshToken:(NSString *)refreshToken;

+ (NSString *)authTokenExpire;
+ (void)setAuthTokenExpire:(NSString *)authTokenExpire;

/**
 *  融云token
 *
 *  @return 融云token
 */
+ (NSString *)rongToken;
+ (void)setRongToken:(NSString *)rongToken;
/**
 *  配音号
 *
 *  @return 配音号
 */
+ (NSString *)peiyinNumber;
+ (void)setPeiyinNumber:(NSString *)peiyinNumber;
/**
 *  配音号
 *
 *  @return 配音等级
 */
+ (NSString *)peiyinRank;
+ (void)setPeiyinRank:(NSString *)peiyinRank;
/**
 *  七牛上传授权
 *
 *  @return token
 */
+ (NSString *)uploadToken;
+ (void)setUploadToken:(NSString *)uploadToken;


+ (NSString *)uploadVideoToken;
+ (void)setUploadVideoToken:(NSString *)uploadToken;

/**
 *  聊天文件上传七牛token
 *
 *  @return token
 */
+ (NSString *)uploadMessageToken;
+ (void)setUploadMessageToken:(NSString *)uploadMessageToken;

/**
 *  聊天文件前缀
 *
 *  @return url
 */
+ (NSString *)messageLogURL;
+ (void)setMessageLogURL:(NSString *)messageLogURL;

/**
 *  七牛图片上传token
 *
 */
+ (NSString*)uploadPicToken;
+ (void)setUploadPicToken:(NSString *)uploadPicToken;


#pragma mark - User detail info
/**
 *  用户主页背景
 *
 *  @return
 */
+ (NSString *)cover;
+ (void)setCover:(NSString *)cover;

+ (NSString *)area;
+ (void)setArea:(NSString *)area;

+ (NSString *)phone;
+ (void)setPhone:(NSString *)phone;

+ (NSString *)mobile;
+ (void)setMobile:(NSString *)mobile;

+ (NSString *)school;
+ (void)setSchool:(NSString *)school;

+ (NSString *)schoolName;
+ (void)setSchoolName:(NSString *)schoolName;

/**
 学生所在学校年级：一...九年级
  */
+ (NSString *)schoolGrade;
+ (void)setSchoolGrade:(NSString *)schoolGrade;

/**
 用户学校身份：主要在学校专区体现使用，FZSchoolIdentityType：默认0 需要选择，1，学生，2老师，
 */
+ (SRSchoolClassUserType)schoolIdentity;
+ (void)setSchoolIdentity:(SRSchoolClassUserType)schoolIdentity;


+ (NSString *)birthday;
+ (void)setBirthday:(NSString *)birthday;

    //学校机构id
+ (NSString *)schoolID;
+ (void)setSchoolID:(NSString *)schoolID;

/**
 *  1男 2女 0无
 *
 *  @return int
 */
+ (NSInteger)sex;
+ (void)setSex:(NSInteger)sex;

/**
 *  3--60
 *
 *  @return int
 */
+ (NSInteger)age;
+ (void)setAge:(NSInteger)age;


/**
 *  用户签名
 *
 *  @return
 */
+ (NSString *)signature;
+ (void)setSignature:(NSString *)signature;


/**
 *  校区
 *
 *  @return
 */
+ (NSString *)campus;
+ (void)setCampus:(NSString *)campus;

/**
 *  用户班级
 *
 *  @return
 */
+ (NSString *)userClass;
+ (void)setUserClass:(NSString *)userClass;

/**
 *  ishow 学员班级列表
 *
 *  @return
 */
+ (NSArray *)userClassList;
+ (void)setUserClassList:(NSArray *)userClassList;

+ (NSString *)teacherID;
+ (void)setTeacherID:(NSString *)teacherID;


/**
 *  用于截取和拼接头像
 *
 *  @return url
 */
+ (NSString *)imageURL;
+ (void)setImageURL:(NSString *)imageURL;

// 头像url前缀
+ (NSString *)avatarPrefix;
+ (void)setAvatarPrefix:(NSString *)avatarPrefix;


/**
 *  用户的具体身份 station
 */
+ (NSInteger)userStationInfoIdentity;
+ (void)setUserStationInfoUserIdentity:(FZUserIdentifier)userIdentifier;
/**
 *  学生身份 typeid
 */
+ (NSInteger)userSchoolInfoIdentity;
+ (void)setUserSchoolInfoUserIdentity:(FZStudentType)userIdentifier;
@end
